﻿using QG.FrontDesk.BLL.IService;
using QG.FrontDesk.DAL.IRepository;
using QG.FrontDesk.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QG.FrontDesk.BLL.Service
{
    public class Position_ResumeinfoService : IPosition_ResumeinfoService
    {
        private IPosition_ResumeinfoResitory _position_ResumeinfoResitory;

        public Position_ResumeinfoService(IPosition_ResumeinfoResitory position_ResumeinfoResitory)
        {
            _position_ResumeinfoResitory = position_ResumeinfoResitory;
        }
        /// <summary>
        /// 投递简历
        /// </summary>
        /// <param name="position_Resumeinfo"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        public int AddPosition_Resumeinfo(Position_ResumeInfo position_Resumeinfo, int userId)
        {
            return _position_ResumeinfoResitory.AddPosition_Resumeinfo(position_Resumeinfo,userId);
        }

        /// <summary>
        /// 是否符合要求
        /// </summary>
        /// <param name="postId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        public bool IsAccord(int postId, int userId) {
            return _position_ResumeinfoResitory.IsAccord(postId,userId);
        }

    
    }
}
